package com.codinghero.zqlb.match;

import java.util.Comparator;

public class SoccerMatchTypeComparator implements Comparator<SoccerMatch> {

	@Override
	public int compare(SoccerMatch o1, SoccerMatch o2) {
		int type1 = 0, type2 = 0;
		type1 = o1.getTypeId() != null ? o1.getTypeId() : 0;
		type2 = o2.getTypeId() != null ? o2.getTypeId() : 0;
		return type1 - type2;
	}

}
